<template>
  <el-sub-menu index="10">
    <template #title>{{ user_name }}</template>
    <login-out></login-out>
  </el-sub-menu>
</template>

<script setup>
import LoginOut from "../../Login/components/LoginOut.vue"
// 登入用户名
const user_name = ref()
onMounted(() => {
  // 从路由获取用户名
  const $route = useRoute()
  const name = $route.query
  user_name.value = name.name
})
</script>

<style scoped></style>
